package com.ytjj.qmyx.mall.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AlipayComplaintsHistoryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AlipayComplaintsHistoryExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andComplainEventIdIsNull() {
            addCriterion("complain_event_id is null");
            return (Criteria) this;
        }

        public Criteria andComplainEventIdIsNotNull() {
            addCriterion("complain_event_id is not null");
            return (Criteria) this;
        }

        public Criteria andComplainEventIdEqualTo(String value) {
            addCriterion("complain_event_id =", value, "complainEventId");
            return (Criteria) this;
        }

        public Criteria andComplainEventIdNotEqualTo(String value) {
            addCriterion("complain_event_id <>", value, "complainEventId");
            return (Criteria) this;
        }

        public Criteria andComplainEventIdGreaterThan(String value) {
            addCriterion("complain_event_id >", value, "complainEventId");
            return (Criteria) this;
        }

        public Criteria andComplainEventIdGreaterThanOrEqualTo(String value) {
            addCriterion("complain_event_id >=", value, "complainEventId");
            return (Criteria) this;
        }

        public Criteria andComplainEventIdLessThan(String value) {
            addCriterion("complain_event_id <", value, "complainEventId");
            return (Criteria) this;
        }

        public Criteria andComplainEventIdLessThanOrEqualTo(String value) {
            addCriterion("complain_event_id <=", value, "complainEventId");
            return (Criteria) this;
        }

        public Criteria andComplainEventIdLike(String value) {
            addCriterion("complain_event_id like", value, "complainEventId");
            return (Criteria) this;
        }

        public Criteria andComplainEventIdNotLike(String value) {
            addCriterion("complain_event_id not like", value, "complainEventId");
            return (Criteria) this;
        }

        public Criteria andComplainEventIdIn(List<String> values) {
            addCriterion("complain_event_id in", values, "complainEventId");
            return (Criteria) this;
        }

        public Criteria andComplainEventIdNotIn(List<String> values) {
            addCriterion("complain_event_id not in", values, "complainEventId");
            return (Criteria) this;
        }

        public Criteria andComplainEventIdBetween(String value1, String value2) {
            addCriterion("complain_event_id between", value1, value2, "complainEventId");
            return (Criteria) this;
        }

        public Criteria andComplainEventIdNotBetween(String value1, String value2) {
            addCriterion("complain_event_id not between", value1, value2, "complainEventId");
            return (Criteria) this;
        }

        public Criteria andReplierNameIsNull() {
            addCriterion("replier_name is null");
            return (Criteria) this;
        }

        public Criteria andReplierNameIsNotNull() {
            addCriterion("replier_name is not null");
            return (Criteria) this;
        }

        public Criteria andReplierNameEqualTo(String value) {
            addCriterion("replier_name =", value, "replierName");
            return (Criteria) this;
        }

        public Criteria andReplierNameNotEqualTo(String value) {
            addCriterion("replier_name <>", value, "replierName");
            return (Criteria) this;
        }

        public Criteria andReplierNameGreaterThan(String value) {
            addCriterion("replier_name >", value, "replierName");
            return (Criteria) this;
        }

        public Criteria andReplierNameGreaterThanOrEqualTo(String value) {
            addCriterion("replier_name >=", value, "replierName");
            return (Criteria) this;
        }

        public Criteria andReplierNameLessThan(String value) {
            addCriterion("replier_name <", value, "replierName");
            return (Criteria) this;
        }

        public Criteria andReplierNameLessThanOrEqualTo(String value) {
            addCriterion("replier_name <=", value, "replierName");
            return (Criteria) this;
        }

        public Criteria andReplierNameLike(String value) {
            addCriterion("replier_name like", value, "replierName");
            return (Criteria) this;
        }

        public Criteria andReplierNameNotLike(String value) {
            addCriterion("replier_name not like", value, "replierName");
            return (Criteria) this;
        }

        public Criteria andReplierNameIn(List<String> values) {
            addCriterion("replier_name in", values, "replierName");
            return (Criteria) this;
        }

        public Criteria andReplierNameNotIn(List<String> values) {
            addCriterion("replier_name not in", values, "replierName");
            return (Criteria) this;
        }

        public Criteria andReplierNameBetween(String value1, String value2) {
            addCriterion("replier_name between", value1, value2, "replierName");
            return (Criteria) this;
        }

        public Criteria andReplierNameNotBetween(String value1, String value2) {
            addCriterion("replier_name not between", value1, value2, "replierName");
            return (Criteria) this;
        }

        public Criteria andReplierRoleIsNull() {
            addCriterion("replier_role is null");
            return (Criteria) this;
        }

        public Criteria andReplierRoleIsNotNull() {
            addCriterion("replier_role is not null");
            return (Criteria) this;
        }

        public Criteria andReplierRoleEqualTo(String value) {
            addCriterion("replier_role =", value, "replierRole");
            return (Criteria) this;
        }

        public Criteria andReplierRoleNotEqualTo(String value) {
            addCriterion("replier_role <>", value, "replierRole");
            return (Criteria) this;
        }

        public Criteria andReplierRoleGreaterThan(String value) {
            addCriterion("replier_role >", value, "replierRole");
            return (Criteria) this;
        }

        public Criteria andReplierRoleGreaterThanOrEqualTo(String value) {
            addCriterion("replier_role >=", value, "replierRole");
            return (Criteria) this;
        }

        public Criteria andReplierRoleLessThan(String value) {
            addCriterion("replier_role <", value, "replierRole");
            return (Criteria) this;
        }

        public Criteria andReplierRoleLessThanOrEqualTo(String value) {
            addCriterion("replier_role <=", value, "replierRole");
            return (Criteria) this;
        }

        public Criteria andReplierRoleLike(String value) {
            addCriterion("replier_role like", value, "replierRole");
            return (Criteria) this;
        }

        public Criteria andReplierRoleNotLike(String value) {
            addCriterion("replier_role not like", value, "replierRole");
            return (Criteria) this;
        }

        public Criteria andReplierRoleIn(List<String> values) {
            addCriterion("replier_role in", values, "replierRole");
            return (Criteria) this;
        }

        public Criteria andReplierRoleNotIn(List<String> values) {
            addCriterion("replier_role not in", values, "replierRole");
            return (Criteria) this;
        }

        public Criteria andReplierRoleBetween(String value1, String value2) {
            addCriterion("replier_role between", value1, value2, "replierRole");
            return (Criteria) this;
        }

        public Criteria andReplierRoleNotBetween(String value1, String value2) {
            addCriterion("replier_role not between", value1, value2, "replierRole");
            return (Criteria) this;
        }

        public Criteria andGmtCreateIsNull() {
            addCriterion("gmt_create is null");
            return (Criteria) this;
        }

        public Criteria andGmtCreateIsNotNull() {
            addCriterion("gmt_create is not null");
            return (Criteria) this;
        }

        public Criteria andGmtCreateEqualTo(Date value) {
            addCriterion("gmt_create =", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateNotEqualTo(Date value) {
            addCriterion("gmt_create <>", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateGreaterThan(Date value) {
            addCriterion("gmt_create >", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateGreaterThanOrEqualTo(Date value) {
            addCriterion("gmt_create >=", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateLessThan(Date value) {
            addCriterion("gmt_create <", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateLessThanOrEqualTo(Date value) {
            addCriterion("gmt_create <=", value, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateIn(List<Date> values) {
            addCriterion("gmt_create in", values, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateNotIn(List<Date> values) {
            addCriterion("gmt_create not in", values, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateBetween(Date value1, Date value2) {
            addCriterion("gmt_create between", value1, value2, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andGmtCreateNotBetween(Date value1, Date value2) {
            addCriterion("gmt_create not between", value1, value2, "gmtCreate");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("content is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("content is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(String value) {
            addCriterion("content =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(String value) {
            addCriterion("content <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(String value) {
            addCriterion("content >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("content >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThan(String value) {
            addCriterion("content <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(String value) {
            addCriterion("content <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLike(String value) {
            addCriterion("content like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotLike(String value) {
            addCriterion("content not like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<String> values) {
            addCriterion("content in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<String> values) {
            addCriterion("content not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(String value1, String value2) {
            addCriterion("content between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(String value1, String value2) {
            addCriterion("content not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andImagesIsNull() {
            addCriterion("images is null");
            return (Criteria) this;
        }

        public Criteria andImagesIsNotNull() {
            addCriterion("images is not null");
            return (Criteria) this;
        }

        public Criteria andImagesEqualTo(String value) {
            addCriterion("images =", value, "images");
            return (Criteria) this;
        }

        public Criteria andImagesNotEqualTo(String value) {
            addCriterion("images <>", value, "images");
            return (Criteria) this;
        }

        public Criteria andImagesGreaterThan(String value) {
            addCriterion("images >", value, "images");
            return (Criteria) this;
        }

        public Criteria andImagesGreaterThanOrEqualTo(String value) {
            addCriterion("images >=", value, "images");
            return (Criteria) this;
        }

        public Criteria andImagesLessThan(String value) {
            addCriterion("images <", value, "images");
            return (Criteria) this;
        }

        public Criteria andImagesLessThanOrEqualTo(String value) {
            addCriterion("images <=", value, "images");
            return (Criteria) this;
        }

        public Criteria andImagesLike(String value) {
            addCriterion("images like", value, "images");
            return (Criteria) this;
        }

        public Criteria andImagesNotLike(String value) {
            addCriterion("images not like", value, "images");
            return (Criteria) this;
        }

        public Criteria andImagesIn(List<String> values) {
            addCriterion("images in", values, "images");
            return (Criteria) this;
        }

        public Criteria andImagesNotIn(List<String> values) {
            addCriterion("images not in", values, "images");
            return (Criteria) this;
        }

        public Criteria andImagesBetween(String value1, String value2) {
            addCriterion("images between", value1, value2, "images");
            return (Criteria) this;
        }

        public Criteria andImagesNotBetween(String value1, String value2) {
            addCriterion("images not between", value1, value2, "images");
            return (Criteria) this;
        }

        public Criteria andImageUrlIsNull() {
            addCriterion("image_url is null");
            return (Criteria) this;
        }

        public Criteria andImageUrlIsNotNull() {
            addCriterion("image_url is not null");
            return (Criteria) this;
        }

        public Criteria andImageUrlEqualTo(String value) {
            addCriterion("image_url =", value, "imageUrl");
            return (Criteria) this;
        }

        public Criteria andImageUrlNotEqualTo(String value) {
            addCriterion("image_url <>", value, "imageUrl");
            return (Criteria) this;
        }

        public Criteria andImageUrlGreaterThan(String value) {
            addCriterion("image_url >", value, "imageUrl");
            return (Criteria) this;
        }

        public Criteria andImageUrlGreaterThanOrEqualTo(String value) {
            addCriterion("image_url >=", value, "imageUrl");
            return (Criteria) this;
        }

        public Criteria andImageUrlLessThan(String value) {
            addCriterion("image_url <", value, "imageUrl");
            return (Criteria) this;
        }

        public Criteria andImageUrlLessThanOrEqualTo(String value) {
            addCriterion("image_url <=", value, "imageUrl");
            return (Criteria) this;
        }

        public Criteria andImageUrlLike(String value) {
            addCriterion("image_url like", value, "imageUrl");
            return (Criteria) this;
        }

        public Criteria andImageUrlNotLike(String value) {
            addCriterion("image_url not like", value, "imageUrl");
            return (Criteria) this;
        }

        public Criteria andImageUrlIn(List<String> values) {
            addCriterion("image_url in", values, "imageUrl");
            return (Criteria) this;
        }

        public Criteria andImageUrlNotIn(List<String> values) {
            addCriterion("image_url not in", values, "imageUrl");
            return (Criteria) this;
        }

        public Criteria andImageUrlBetween(String value1, String value2) {
            addCriterion("image_url between", value1, value2, "imageUrl");
            return (Criteria) this;
        }

        public Criteria andImageUrlNotBetween(String value1, String value2) {
            addCriterion("image_url not between", value1, value2, "imageUrl");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}